function distance(a,b){//计算距离
    return Math.sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
var structure={
    floors:4,//层数
    floorPoints:[{x:0,y:0,id:0,width:4},{x:100,y:0,id:1,width:4}],//楼梯节点
    floorConnections:[{from:0,to:1,width:5,classCounts:4}],
    floorHeight:10,//楼层高度，包括长轴
    //hallWaywidth:8,
    //holeWidth:8,
    population:52,
    classRoomMargin:3.5,
    initByStructure:function (){
        //生成第一层
        for(let i in floorConnections){
            let fi = floorConnections[i];
            HallWay.newHoleWay(fi.width,distance(floorPoints[fi.from],floorPoints[fi.to]),
            floorConnections.from,floorConnections.to,testNewClassRoom(classCounts,population),classRoomMargin);
        }
    }
}
